package com.sd.dao.impl;

import com.sd.dao.AssistantDAO;
import com.sd.domain.Assistant;
import com.sd.mapper.AssistantMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AssistantDAOImpl implements AssistantDAO {

    @Autowired
    private AssistantMapper mapper;

    @Override
    public void save(Assistant assistant) {
         mapper.save(assistant);
    }

    @Override
    public Assistant findByAuthCode(String xxl_sso_sessionid) {
        return mapper.findByAuthCode(xxl_sso_sessionid);
    }

    @Override
    public void removeByAuthCode(String xxl_sso_sessionid) {
        mapper.removeByAuthCode(xxl_sso_sessionid);
    }
}
